#include <iostream>
#include <unistd.h>
#include <cstdlib>
#include <sys/types.h>

#define TaskNum 3

typedef void (*task_t) ();

void Print()
{
    std::cout << "I am print task" << std::endl;
}

void DownLoad()
{
    std::cout << "I am a download task" << std::endl;
}

void Flush()
{
    std::cout << "I am a flush task" << std::endl;
}

task_t tasks[TaskNum];

void LoadTask()
{
    srand(time(nullptr) ^ getpid() ^ 157557);
    tasks[0] = Print;
    tasks[1] = DownLoad;
    tasks[2] = Flush;
}

void ExecuteTask(int number)
{

}


